package com.yeshine.opendata.api.model;

import com.yeshine.opendata.entity.SysDictionary;
import com.yeshine.opendata.utils.JsonUtil;

import java.util.Date;

/**
 * Created by taohj on 2014/9/22.
 */
public class UserModel {

    //用户编号
    private Integer id;
    //用户名
    private String username;
    //最后登录时间
    private String lastLoginTime;
    //注册时间
    private Date inTime;

    //手机号
    private String telephone;

    //电子邮箱
    private String email;

    //头像地址
    private String headImage;

    //自我介绍
    private String description;

    //真实姓名
    private String realname;


    //性别
    private SysDictionary sex;


    //生日
    private Date birthday;

    //QQ号码
    private String QQ;


    private String sessionid;



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public SysDictionary getSex() {
        return sex;
    }

    public void setSex(SysDictionary sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getQQ() {
        return QQ;
    }

    public void setQQ(String QQ) {
        this.QQ = QQ;
    }

    public String getSessionid() {
        return sessionid;
    }

    public void setSessionid(String sessionid) {
        this.sessionid = sessionid;
    }

    public  String toString(){
        return JsonUtil.toString(this);
    }
}
